package com.jian.android.autojipai.app;

import android.app.Application;

import com.jian.android.autojipai.app.helper.ExceptionCrashTool;
import com.jian.android.autojipai.app.helper.ZipTool;

import java.io.File;

public class App extends Application {
    public static int dpi = 0;
    public static int height = 0;
    public static boolean isCanDetection = true;
    public static boolean isStartDetection = false;
    public static String type;
    public static int width;

    public static int detectionZoneCount = 0;

    @Override
    public void onCreate() {
        super.onCreate();
        File file = new File(getExternalFilesDir(null) + File.separator + "app全局异常.txt");
        if (file.exists()) {
            file.delete();
        }
        ExceptionCrashTool.getInstance().init(this);
        new Thread(() -> {
            ZipTool.getInstance().saveZip(App.this);
            ZipTool.getInstance().unZipFile(App.this);
        }).start();
    }

}
